﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bes.Swsp.ToolBox
{
  public static class StringUtility
  {
    public static string Quoted(this string text)
    {
      if (string.IsNullOrEmpty(text))
        return "\"\"";

      if (!text.StartsWith("\""))
        text = "\"" + text;
      if (!text.EndsWith("\""))
        text += "\"";

      return text;
    }
  }
}
